package com.hfy.user.feign;

import com.hfy.feign.IUserClient;
import com.hfy.model.po.user.UserCommentPo;
import com.hfy.user.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ author 韩
 * time: 2024/6/21 4:48
 */
@RestController
@RequestMapping("/feign/user")
public class UserClient implements IUserClient {
    @Autowired
    private InfoService infoService;

    @GetMapping("/get_by_account/{account}")
    public UserCommentPo getInfoByAccount(@PathVariable("account") Long account) {
        return infoService.getInfoByAccount(account);
    }
}
